//
//  DataSaveUtils.h
//  Traffic
//
//  Created by CruItaly on 2017/11/2.
//  Copyright © 2017年 com.infohold.cn. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserInfoBean.h"
#import "MyPoint.h"
@interface DataSaveUtils : NSObject
// 用户信息
+ (void)saveUserInfo:(UserInfoBean *) userinfo;
+ (UserInfoBean *)getUserInfo;
+ (void)clearUserInfo;


//定位信息
+ (void)saveLocationInfo:(MyPoint *)locationInfo;
+ (MyPoint*)getLocationInfo;


//归档NSArray信息
+ (BOOL)saveNsArray:(NSArray *)array name:(NSString *)name;
+ (NSArray*)getNSArrayByName:(NSString *)name;

//保存简单基本信息，或配置信息
+ (void)saveUserName:(NSString *)name;
+ (NSString *)getUserName;

+ (void)saveToken:(NSString *)token;
+ (NSString *)getToken;

+ (void)saveBgCode:(NSString *)bgcode;
+ (NSString *)getBgCode;
@end
